home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D GFX
/
3D GFX.iso
/
amiutils
/
i_l
/
irit5
/
cagd_lib
/
cagd_ftl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-12-30
|
2KB
|
34 lines
/******************************************************************************
* Cagd_ftl.c - default FatalError function for the cagd library. *
*******************************************************************************
* Written by Gershon Elber, April. 93. *
******************************************************************************/
#include <stdio.h>
#include "cagd_loc.h"
/*****************************************************************************
* DESCRIPTION: M
* Trap Cagd_lib errors right here. Provides a default error handler for the M
* cagd library. Gets an error description using CagdDescribeError, prints it M
* and exit the program using exit. M
* *
* PARAMETERS: M
* ErrID: Error type that was raised. M
* *
* RETURN VALUE: M
* void M
* *
* KEYWORDS: M
* CagdFatalError, error handling M
*****************************************************************************/
void CagdFatalError(CagdFatalErrorType ErrID)
{
char
*ErrorMsg = CagdDescribeError(ErrID);
fprintf(stderr, "CAGD_LIB: %s\n", ErrorMsg);
exit(-1);
}